Learn R Programming

tolBasis (version 1.0)

Ratio Comparison: Ratio Relational Operators

Description

Relational operators for the Ratio class.

Usage

"=="(r1,r2) "!="(r1,r2) "<"(r1,r2) "<="(r1,r2) ">"(r1,r2) ">="(r1,r2)

Arguments

r1, r2
Ratio objects

Value

Returns the value resulting of the relational operation. The order operators are not implemented and return NA.

Examples

Run this code
Ratio(1,1+B)==Ratio(1,B+1)

Run the code above in your browser using DataLab